import request from "@/utils/request";

//获取首页商城商品数量
export const showProductNum = () => {
  return request({
    url: "/commodity/product/showProductNum",
    method: "get",
  });
};

//获取订单总数、订单总金额
export const showHomeOrderNum = () => {
  return request({
    url: "/cancel/order/showHomeOrderNum",
    method: "get",
  });
};

//获取券码数
export const showHomeCouponNum = () => {
  return request({
    url: "/cancel/coupon/showHomeCouponNum",
    method: "get",
  });
};
//折线图
export const showWeekOrderNum = () => {
  return request({
    url: "/cancel/order/showWeekOrderNum",
    method: "get",
  });
};
